import Vue from 'vue'
import Router from 'vue-router'
import PageHome from '@/components/home'
import mapshow from '@/components/mapshow'
import analysis from '@/components/analysis'
import prediction from '@/components/prediction'
import dataAnalysis from '@/components/dataAnalysis'
import ErrorPage from '@/components/base/error'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'mapshow',
      component: mapshow
    },
    {
      path: '/analysis',
      name: 'analysis',
      component: analysis
    },
    {
      path: '/prediction',
      name: 'prediction',
      component: prediction
    },
    {
      path: '/dataAnalysis',
      name: 'dataAnalysis',
      component: dataAnalysis
    },
    {
      path: '*',
      name: 'nopage',
      component: ErrorPage
    }
  ]
})
